package entity;

public class User {
    public User(String name,String pasword) {
        this.name = name;
        this.pasword = pasword;
    }

    public User(String name) {
        this.name = name;
    }
    public User(int id, String name, String pasword, int score) {
        this.id = id;
        this.name = name;
        this.pasword = pasword;
        this.score = score;
    }

    private int id;
    private String name;
    private  String pasword;
    private int score;



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPasword() {
        return pasword;
    }

    public void setPasword(String pasword) {
        this.pasword = pasword;
    }

    public int getNumber() {
        return score;
    }

    public void setNumber(int score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pasword='" + pasword + '\'' +
                ", score=" + score +
                '}';
    }
}
